package ErbeDesKoenigs;
import javax.swing.JOptionPane;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;

import IO.CardLoader;
import objects.PlayerInfo;


public class ErbeDesKoenigs {

	public static PlayerInfo[] players;
	public static int playerCount = 4;
	public static int activePlayer = 0;
	public static ProgrammWindow myWin;
	public static int windowX = 1200;
	public static int windowY = 700;
	
	public static CardLoader cardLoader;
	
	JSpinner spinnerPlayerCount = new JSpinner(new SpinnerNumberModel(2,2,5,1));
	
	public static void main(String[] args) {
		playerCount = Integer.parseInt(JOptionPane.showInputDialog("Wie viele Spieler?"));
		players = new PlayerInfo[playerCount];
		for (int i = 0; i < players.length; i++) {
			players[i] = new PlayerInfo();
		}
		cardLoader = new CardLoader();
		myWin = new ProgrammWindow();
		myWin.createSurfaces();
	}

}
